import request from '@/utils/request'

// 查询科室管理列表
// export function listDepartment(query) {
//   return request({
//     url: '/digitaldoctorops/department/list',
//     method: 'get',
//     params: query
//   })
// }
export function listDepartment(query) {
  return request({
    url: '/digitaldoctorops/department/getCorpDept',
    method: 'get',
    params: query
  })
}
// 查询科室管理详细
export function getDepartment(id) {
  return request({
    url: '/digitaldoctorops/department/' + id,
    method: 'get'
  })
}

// 新增科室管理
export function addDepartment(data) {
  return request({
    url: '/digitaldoctorops/department',
    method: 'post',
    data: data
  })
}

// 修改科室管理
export function updateDepartment(data) {
  return request({
    url: '/digitaldoctorops/department',
    method: 'put',
    data: data
  })
}

// 删除科室管理
export function delDepartment(id) {
  return request({
    url: '/digitaldoctorops/department/' + id,
    method: 'delete'
  })
}
// 查询科室管理列表
export function getqiye(query) {
  return request({
    url: '/digitaldoctorops/department/companylist',
    method: 'get',
    params: query
  })
}
export function pigeng(query) {
  return request({
    url: '/digitaldoctorops/company/batchUpate',
    method: 'get',
    params: query
  })
}
export function yunyingrenyuan(query) {
  return request({
    url: '/digitaldoctorops/department/getOperationStaff',
    method: 'get',
    params: query
  })
}